package com.linhh.mall.center.common.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Author linhh
 * @Date 2022 10 09 02 18
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Table(name = "role_info")
public class RoleInfo extends BaseEntity implements Serializable {
    /**
     * 描述
     */
    @Column(name = "role_name", nullable = false, length = 128)
    private String roleName;

    /**
     * 类型
     */
    @Column(name = "type", nullable = false, length = 4)
    private Short type;

    /**
     * 层级
     */
    @Column(name = "grade", nullable = false, length = 11)
    private Integer grade;

    /**
     * 描述
     */
    @Column(name = "description", nullable = false, length = 128)
    private String description;


}
